<template>
  <div class="user-m">
    <div class="user">
      <img src="https://cdn7.axureshop.com/demo/2090757/images/%E5%95%86%E5%93%81%E8%AF%A6%E6%83%85/u1071.png" alt="">
      <div class="rate">
        <p>路****光</p>
        <van-rate v-model="value" size="16" />
      </div>
      <div class="time">
        <span>上午10:30</span>
      </div>
    </div>
    <div class="comment">
      <p>哇哇哇哇哇哇哇 ! ! ! 沙发好漂亮我好喜欢 ! 哇哇哇哇哇哇哇 ! ! ! 沙发好漂亮我好喜欢 ! 哇哇哇哇哇哇哇 ! ! ! 沙发好漂亮我好喜欢 ! 哇哇哇哇哇哇哇 ! ! ! 沙发好漂亮我好喜欢 ! 哇哇哇哇哇哇哇 !
        ! ! 沙发好漂亮我好喜欢 !</p>
      <div class="picbox">
        <div class="pic"></div>
        <div class="pic"></div>
        <div class="pic"></div>
        <div class="pic"></div>
        <div class="pic"></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: 4,
    };
  },
}
</script>

<style lang="scss" scoped>
.user-m {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.user {
  display: flex;
  padding: 30px 10px 10px;
  height: 40px;

  img {
    width: 40px;
    border-radius: 100px;
  }

  .rate {
    flex: 1;
    padding: 0 3px;
  }

  .time {
    font-size: 14px;
    color: #999;
  }

}

.comment {
  padding: 0 20px 8px 54px;

  p {
    height: 68px;
    line-height: 22px;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    /* 这里是超出几行省略 */
  }

  .picbox {
    display: flex;
    flex-wrap: wrap;

    .pic {
      width: 88px;
      height: 88px;
      overflow: hidden;
      margin: 5px 0;
      background-image: url(../../img/th\ \(4\).jpg);
      background-size: cover;

      &:nth-child(3n-1) {
        margin: 5px 10px 0;
      }
    }
  }
}
</style>